package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-04-11
 * Time: 21:22
 */
public class Demo11 {
    public static void main(String[] args) {
        try(Writer writer=new FileWriter("d:/test.txt")){
            writer.write("i love china");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
